<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>评价查看</title>
<link href="<%=basePath%>skin/css/validform/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
</head>

<body>
	<form id="form1" name="form1" method="post" action="<%=basePath%>admin/comment/update.shtml">
	<input type="hidden" name="id" value="${comment.id}" />
		<table width="98%" class="input tabContent">
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">会员名称：</td>
				<td class="tdLeft">${comment.member.name }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">会员手机：</td>
				<td class="tdLeft">${comment.member.username }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">订单编号：</td>
				<td class="tdLeft">${comment.order.sn}</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">商品名称：</td>
				<td class="tdLeft">${comment.product.name }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">评价分数：</td>
				<td class="tdLeft">${comment.score }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">评价内容：</td>
				<td class="tdLeft">${comment.content }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">是否显示：</td>
				<td class="tdLeft">
					<c:choose>
						<c:when test="${not empty comment.isShow && comment.isShow}">显示</c:when>
						<c:otherwise>不显示</c:otherwise>
					</c:choose>
				</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">ip：</td>
				<td class="tdLeft">${comment.ip }</td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">评价时间：</td>
				<td class="tdLeft"><fmt:formatDate value="${comment.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
			<tr bgcolor="#FAFAF1" height="22">
				<td class="tdRight">更新时间：</td>
				<td class="tdLeft"><fmt:formatDate value="${comment.modifyDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
		</table>
		<table width="98%">
			<tr bgcolor="#EEF4EA">
				<td height="36" colspan="10">
					<input type="button" value="返回" class="button" onclick="location.href='<%=basePath%>admin/comment/list.shtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
